package com.xbongbong.outLink.domain.entity;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.util.DateTimeUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

@Setter
@Getter
@ToString
public class OuterLinkConfigEntity  implements Serializable {
    private static final long serialVersionUID = 3357093339475581126L;

    public OuterLinkConfigEntity(){
        addTime = DateTimeUtil.getInt();
        updateTime = DateTimeUtil.getInt();
        del = 0;
    }

    public OuterLinkConfigEntity(Long id, String corpid, Long formId, Integer type, String defaultFormName, String explains, Integer configType, JSONObject seniorInfo, JSONObject templateInfo, Long addTime, Long updateTime, Integer del) {
        this.id = id;
        this.corpid = corpid;
        this.formId = formId;
        this.type = type;
        this.defaultFormName = defaultFormName;
        this.explains = explains;
        this.configType = configType;
        this.seniorInfo = seniorInfo;
        this.templateInfo = templateInfo;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.del = del;
    }

    /**
     * 主键id
     */
    private Long id;
    /**
     * 公司id
     */
    private String corpid;

    /**
     * 表单id
     */
    private Long formId;
    /**
     * 外链类型 1 外链填写 2 外链查询 3 外链分享
     */
    private Integer type;
    /**
     * 外链分享出去的表单名字
     */
    private String defaultFormName;
    /**
     * 简化的解释
     */
    private String explains;
    /**
     * 1 权限设置 2 显示设置 3 筛选设置
     */
    private Integer configType;
    /**
     * 高级设置
     */
    private JSONObject seniorInfo;
    /**
     * 外观设置
     */
    private JSONObject templateInfo;
    /**
     * 添加时间
     */
    private Long addTime;
    /**
     * 更新时间
     */
    private Long updateTime;
    /**
     * 删除标记
     */
    private Integer del;
}

